package com.fanling.venus.project.mapper;


import com.fanling.venus.project.domain.EpointWeeklyWork;

import java.util.List;

public interface EpointWeeklyWorkMapper {
    /**
     * 每周工作信息列表
     *
     * @param epointWeeklyWork
     * @return
     */
    List<EpointWeeklyWork> selectWeeklyWorkList(EpointWeeklyWork epointWeeklyWork);

    /**
     * 获取每周工作信息
     *
     * @param workId
     * @return
     */
    EpointWeeklyWork selectWeeklyWorkById(Long workId);

    /**
     * 新增每周工作信息
     *
     * @param epointWeeklyWork
     * @return
     */
    int insertWeeklyWork(EpointWeeklyWork epointWeeklyWork);

    /**
     * 修改每周工作信息
     *
     * @param epointWeeklyWork
     * @return
     */
    int updateWeeklyWork(EpointWeeklyWork epointWeeklyWork);

    /**
     * 检查每周工作标题重复
     *
     * @param workTitle
     * @return
     */
    EpointWeeklyWork checkProjectNameAndWorkTitleUnique(String projectName, String workTitle);

    /**
     * 删除每周工作
     *
     * @param workId
     * @return
     */
    int deleteWeeklyWorkById(Long workId);
}
